/*    */ package com.qmsk.business.store.saledetail.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.in.GsonHeadManyRows;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.Date;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class SaleDetailDao extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfId(Long id)
/*    */     throws SQLException
/*    */   {
/* 15 */     Map params = new HashMap();
/* 16 */     params.put("id", id);
/* 17 */     return getGsonOfParams("selectSqlOfShopId", params, false);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfSaleId(Long saleId) throws SQLException {
/* 21 */     Map params = new HashMap();
/* 22 */     params.put("saleId", saleId);
/* 23 */     return getGsonOfParams("selectSqlOfShopId", params, false);
/*    */   }
/*    */ 
/*    */   public String getMLevelStr(Object id) throws SQLException {
/* 27 */     Object[] params = { id };
/* 28 */     return queryForString("selectSqlOfMLevelStr", params, null);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfShopId(Map<String, Object> params, Integer nPageIdx, Short nPageSize) throws SQLException
/*    */   {
/* 33 */     return getGsonOfParams("selectSqlOfShopId", params, nPageIdx, 
/* 34 */       nPageSize, true);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGson2OfShopId(Map<String, Object> params, Integer nPageIdx, Short nPageSize) throws SQLException
/*    */   {
/* 39 */     return getGsonOfParams("selectSqlOfShopId2", params, nPageIdx, 
/* 40 */       nPageSize, true);
/*    */   }
/*    */ 
/*    */   public Date getRequestDateOfId(Object id) throws SQLException {
/* 44 */     Object[] params = { id };
/* 45 */     return ((Date)queryForObject("getRequestDateSqlOfId", params, null));
/*    */   }
/*    */ 
/*    */   public int updateCheckedOfIds(String id) throws SQLException
/*    */   {
/* 50 */     Object[] strParams = { id };
/* 51 */     return update("updateCheckedOfIds", strParams);
/*    */   }
/*    */ 
/*    */   public GsonHeadManyRows getManyRowsSaleDetailOfSaleId(Long saleId) throws SQLException {
/* 55 */     Map params = new HashMap();
/* 56 */     params.put("saleId", saleId);
/* 57 */     return getManyRowsOfParams("selectSqlOfSaleId", params);
/*    */   }
/*    */ 
/*    */   public GsonHeadManyRows getManyRowsGoodsDetailOfSaleId(Long saleId) throws SQLException {
/* 61 */     Map params = new HashMap();
/* 62 */     params.put("saleId", saleId);
/* 63 */     return getManyRowsOfParams("selectGoodsOfSaleId", params);
/*    */   }
/*    */ 
/*    */   public int deleteOfIds(String[] strParams)
/*    */     throws SQLException
/*    */   {
/* 73 */     Map params = new HashMap();
/* 74 */     params.put("id", strParams);
/* 75 */     return update("deleteOfId", params);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.store.saledetail.dao.SaleDetailDao
 * JD-Core Version:    0.5.3
 */